package com.xyh.transaction.mapper;

import com.xyh.transaction.entity.Goods;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface GoodsMapper {


    List<Goods> findAll(Goods goods);

    void delete(Integer[] ids);

    void insert(Goods goods);

    void update(Goods goods);

    Goods findById(Integer id);

    List<Goods> findAllByCategoryIds(List<Integer> categoryIds);

    List<Goods> findByGoodsIds(List<Integer> goodsIds);

    Goods findByName(String name);

    Goods findByCode(String code);
}
